package _07Stream流常用方法;

import java.util.stream.Stream;

public class DemoStream_concat {
    public static void main(String[] args) {
        //concat方法,将两个流合并成为一个新的流
        Stream<Integer> integerStream1 = Stream.of(11, 22);
        Stream<Integer> integerStream2 = Stream.of(33, 44);
        Stream<Integer> concat = Stream.concat(integerStream1, integerStream2);
        concat.forEach(System.out::println);
    }
}
